package Fclass1017;

public class Teacher {
    String name;
    int age;
    String post;
    double salary;

    public Teacher() {
    }

    public Teacher(String name, int age, String post, double salary) {
        this.name = name;
        this.age = age;
        this.post = post;
        this.salary = salary;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public void introduce(){
        System.out.println(name+age+post+salary);
    }

}
class professor extends Teacher{
    public professor(String name, int age, String post, double salary) {
        super(name, age, "教授", salary*1.3);
    }
}
class viceprofessor extends Teacher{
    public viceprofessor(String name, int age, String post, double salary) {
        super(name, age, "副教授", salary);
    }
}

class lecturer extends Teacher{

}